//
//  TTHttpRequest.h
//  ExhibitionHall
//
//  Created by 王洋 on 2019/6/3.
//  Copyright © 2019 王洋. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

typedef void (^finishBlock)(id data);
typedef void (^failedBlock)(NSError *error);

@interface TTHttpRequest : NSObject

@property(copy,nonatomic) NSString *url;
@property(assign,nonatomic)NSInteger timeOut;//超时时间
@property(copy,nonatomic) NSDictionary *getData;
@property(copy,nonatomic) NSDictionary *postData;

@property(copy,nonatomic) finishBlock finishBlock;
@property(copy,nonatomic) failedBlock failedBlock;

-(void)getStart;
-(void)postStart;

@end

NS_ASSUME_NONNULL_END
